package com.example.qxfw.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qxfw.common.entity.RoadlineType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/************************************
*
* @author : HuangDeYin Jolly
* @since : JDK 11
* @Date : 2023/7/9  星期日   12:03
* @description : 此类用来
***************************************/
@Mapper
public interface RoadlineTypeMapperXml extends BaseMapper<RoadlineType> {
    /**
     * delete by primary key
     * @param roadtype primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(String roadtype);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(RoadlineType record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(RoadlineType record);

    /**
     * select by primary key
     * @param roadtype primary key
     * @return object by primary key
     */
    RoadlineType selectByPrimaryKey(String roadtype);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(RoadlineType record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(RoadlineType record);

    List<RoadlineType> selectDistinct();
}